package com.kaishengit.pojo;


import java.text.DateFormat;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;


public class Test {
	public static void main(String[] args) throws ParseException {
		
		/*Date date = new Date();
		System.out.println(date.getTime());
		System.out.println(date.toString());
		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		System.out.println(sdf.format(date));
		System.out.println("系统当前时间 = " + System.currentTimeMillis()); 
		Date date2 = new Date(); 
		
		DateFormat df3 = DateFormat.getDateInstance(DateFormat.FULL, Locale.CHINA); 
		DateFormat df4 = new SimpleDateFormat("EE yyyy年MM月dd日 ", Locale.CHINA); 
		System.out.println("现在的日期是 = " + df3.format(date2)); 
		System.out.println("现在的日期是 = " + df4.format(date2));*/
		 SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yyyy");
		 long  date_long1 = sdf.parse("10/03/2012").getTime();
		 System.out.println(date_long1);
		 DateFormat df4 = new SimpleDateFormat("EE yyyy年MM月dd日 ", Locale.CHINA); 
		 System.out.println(df4.format(date_long1));
	}
}
